import request from '@/utils/request'

// 查询调查列列表
export function listSurveyPolygon(query) {
  return request({
    url: '/survey/polygon/list',
    method: 'get',
    params: query
  })
}

// 查询调查列列表
export function listSurveyPolygonProjects() {
  return request({
    url: '/survey/polygon/list.projects',
    method: 'get'
  })
}

export function listSurveyPolygonStatus() {
  return request({
    url: '/survey/polygon/list.status',
    method: 'get'
  })
}
// 查询调查列详细
export function getSurveyPolygon(fSurveyid) {
  return request({
    url: '/survey/polygon/' + fSurveyid,
    method: 'get'
  })
}

// 新增调查列
export function addSurveyPolygon(data) {
  return request({
    url: '/survey/polygon/',
    method: 'post',
    data: data
  })
}

// 修改调查列
export function updateSurveyPolygon(data) {
  return request({
    url: '/survey/polygon',
    method: 'put',
    data: data
  })
}

// 删除调查列
export function delSurveyPolygon(fSurveyid) {
  return request({
    url: '/survey/polygon/' + fSurveyid,
    method: 'delete'
  })
}
